$(document).ready(function(){
    
        var container = $('div.container');
         
        // validate the form when it is submitted
        validator = $("#form1").validate({
            submitHandler: function(form) {
                form.submit();    
            },
            errorContainer: container,
            errorLabelContainer: $("ol", container),
            wrapper: 'li',
            meta: "validate",
            focusInvalid:false,
            rules: {
                 "businessInstance.allowCompanyIdsNames":{  //发布单位
                    required: true
                 }
            },
            
            messages:{
                "businessInstance.allowCompanyIdsNames":{   //发布单位
                    required: "请填写发布单位！"
                }
            }
        });
        });                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         